/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
import ModuleLayout from '@/layout/module'

const memberRouter = {
  path: '/staff',
  component: Layout,
  redirect: '/staff/manage',
  name: 'Staff',
  meta: {
    title: '人员',
    icon: 'member'
  },
  children: [
    // {
    //   path: '/staff/default',
    //   component: () => import('@/views/staff/default/index'),
    //   name: 'StaffDefault',
    //   meta: {
    //     title: '概况',
    //     icon: 'em-icon-rank-o'
    //   }
    // },
    {
      path: '/staff/manage',
      component: ModuleLayout,
      redirect: '/staff/manage/index',
      meta: {
        title: '人员管理',
        icon: 'em-icon-countdown-o'
      },
      children: [
        {
          path: '/staff/manage/index',
          component: () => import('@/views/staff/manage/index'),
          meta: {
            title: '列表'
          },
          hidden: true
        },
        {
          path: '/staff/manage/view/:id',
          component: () => import('@/views/staff/manage/view'),
          name: 'staff/manage/view/:id',
          meta: {
            title: '详情'
          },
          hidden: true
        },
        {
          path: '/staff/manage/import',
          component: () => import('@/views/staff/manage/import'),
          name: 'StaffManageImport',
          meta: {
            title: '批量导入'
          },
          hidden: true
        }
      ]
    },
    {
      path: '/staff/user',
      component: () => import('@/views/user/default/index'),
      name: 'StaffUser',
      meta: {
        title: '用户管理',
        icon: 'em-icon-user-setting'
      }
    }
  ]
}
export default memberRouter
